DHCP Server
2013/05/06 |
Configure DHCP ( Dynamic Host Configuration Protocol ) Server.
If you make your linux computer DHCP server, it's neccesarry to disable DHCP function on router in LAN.
|
|
[1] | Install and configure DHCP |
root@dlp:~#
aptitude -y install dhcp3-server
root@dlp:~#
vi /etc/dhcp/dhcpd.conf # line 13: specify domain name option domain-name "srv.world" ;
# line 14: specify nameserver's hostname or IP address option domain-name-servers dlp.srv.world ;
# line 21: uncomment authoritative; # add at the last # specify network address and subnet-mask subnet 10.0.0.0 netmask 255.255.255.0 { # specify default gateway option routers 10.0.0.1; # specify subnet-mask option subnet-mask 255.255.255.0; # specify the range of leased IP address range dynamic-bootp 10.0.0.200 10.0.0.254; } /etc/init.d/isc-dhcp-server restart [ ok ] Stopping ISC DHCP server: dhcpd. [ ok ] Starting ISC DHCP server: dhcpd. |
[2] | Configure on client PC. This example is on Windows 7. Open network settings and select "internet protocol" and click "property" button. |
[3] | Check boxes like below, then IP address is re-configured automatically. |
[4] | See the network status. Automatical configuration is done. |